package com.bkgy.controller.memcache.controller;

import cn.hutool.json.JSONObject;
import com.bkgy.controller.memcache.service.IMemcacheServer;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "MQ消息", description = "MQ消息")
@RestController
@RequestMapping("/mq")
@RequiredArgsConstructor
public class MsgController {
    private final IMemcacheServer memcacheServer;

    @GetMapping("/rollingMillVibration")
    @ResponseBody
    public ResultData<String> rollingMillVibration() {
        JSONObject json = memcacheServer.processHandel();
        return ResultData.ResultDataSuccess(json);
    }
}
